JavaScript

A5.chart.Render DataAxis Object

Description

The data for an axis.

Properties

typestring

The axis type. Value will be "continuous" or "discrete".

asstring

The data type of the axis. Value can be "number", "date" or "string".

onstring

The name of the actual axis the "value" axis is being drawn on. Only applies to "linear" and "radial" charts.

basenumber

The base value of the axis.

minnumber

The max value of the axis.

maxnumber

The max value of the axis.

rangenumber

The range of the axis from min to max.

stepnumber

The interval step used on the axis.

directionnumber

The direction the axis is being drawn. A value of "1" is normal and "-1" is reversed.

stackstringboolean

The stacking of the axis if applicable.

offsetboolean

If the axis type is "discrete" and the value is true then the axis is being drawn with offset.

marksobject

The marks on the axis. each mark is defined as an array of values. The first value is the actual value on the axis. The second is the relative value (0 to 1). The third if the absolute value (e.g. relative multiplied by range). The fourth is the description of the mark as a string ("base", "min", "max" or "interval"). And the fifth (if included - such as with a polar angle axis) is the actual absolute value.

basearray

The base mark.

minarray

The min mark.

maxarray

The max mark.

intervalarray

An array of all marks.